package com.bjpowernode.springboot.web;

import com.bjpowernode.springboot.domain.User;
import com.bjpowernode.springboot.mapper.UserMapperPlus;
import com.bjpowernode.springboot.service.UserServicePlus;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userPlus")
@Api(value = "/userPlus", description = "用户操作接口")
public class UserControllerPlus   {
    @Autowired
   UserServicePlus userServicePlus;
//
//    @ApiOperation(value = "根据ID查询")
//    @GetMapping("/get")
//    public User getTestById(@RequestParam int id){
//
//    return userServicePlus.getById(id);
//    }

//   @ApiOperation(value = "查询")
// @GetMapping("/sel")
//   public List<User> testSeervice(){
//       List<User> list = userServicePlus.list();
//       System.out.println(list);
//      return list;
//   }


}
